 {% extends 'base.html'%}
 {% block content  %}
      <form class="form-horizontal" action="{% url 'new_article' %}" method="post" enctype="multipart/form-data">
         {% csrf_token %}

        <div class="form-group">
          <label for="title" class="col-sm-2 control-label">文章标题</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" id="title" name="title" placeholder="请输入文章标题">
          </div>
        </div>

        <div class="form-group">
          <label for="img_title" class="col-sm-2 control-label">请输入图片标题</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" id="img_title" name="img_title" placeholder="请输入图片标题">
          </div>
        </div>

        <div class="form-group">
          <label for="img_updata" class="col-sm-2 control-label">请上传图片</label>
          <div class="col-sm-10">
             <input type="file" name="img_url" class="form-control" id="img_updata">
          </div>
        </div>
        <div class="form-group">
            <label for="summernote" class="col-sm-2 control-label">请输入你的文章</label>
             <div class="col-sm-10">
                  <textarea id="summernote" name="editordata"></textarea>
             </div>
        </div>
        <div class="form-group">
          <label for="text_area" class="col-sm-2 control-label">输入文章内容</label>
          <div class="col-sm-10">
             <textarea type="text" name="img_content" class="form-control" id="text_area"></textarea>
          </div>
        </div>



        <div class="form-group">
          <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-default">提交</button>
          </div>
        </div>
      </form>

 {% endblock content %}




